﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_Order : System.Web.UI.Page
{
    DAO_User dao_user = new DAO_User();
    protected void Page_Load(object sender, EventArgs e)
    {
        LoadData();
    }

    private void LoadData()
    {
       gvUser.DataSource = dao_user.GetAllUser();
       gvUser.DataBind();
    }
    protected void Button1_Click(object sender, EventArgs e)
    {
       String key= txtSearchUser.Text;
        gvUser.DataSource = dao_user.SearchUser(key);
       gvUser.DataBind();
    }
}